<h3 class="form-legend">
	<i class="bicon-goright"></i><span><?php echo Yii::t('app', 'Manage Post Categories') ?></span>
	<i class="clear"></i>
</h3>
<div class="top-tools">
    <?php //echo $this->backButton(array('action'=>null, 'controller'=>null))?>
    <div class="pull-right">
        <a class="btn btn-success" href="<?php //echo $this->url(array('action'=>'create', 'id' => ''))?>">
            <i class="icon-file icon-white"></i> <?php echo Yii::t('app', 'create')?>
        </a>
    </div>
    <div class="clear"></div>
</div>

<?php
/* @var $this PostCategoryController */
/* @var $model PostCategory */

$this->breadcrumbs=array(
	'Post Categories'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List PostCategory', 'url'=>array('index')),
	array('label'=>'Create PostCategory', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#post-category-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'post-category-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'parent_id',
		'title',
		'sorter',
		'desc',
		'header',
		/*
		'footer',
		'thumbnail',
		'show_home',
		'show_menu',
		'seo_link',
		'seo_title',
		'seo_keyword',
		'seo_description',
		'status',
		'date_created',
		'date_edited',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
	'itemsCssClass' => 'grid-table table table-bordered table-striped'
)); ?>
